package com.gz.action.impl;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import com.gz.action.Action;
import com.gz.myAnnotation.Controller;
import com.gz.myAnnotation.RequestMapping;
import com.gz.myAnnotation.Result;
import com.gz.pojo.Animal;
import com.gz.service.CatService;
import com.gz.service.impl.CatServiceImpl;


@Controller(name="/cat")
public class CatAction implements Action {
	
	private CatService catService=new CatServiceImpl();

	@Override 
	@RequestMapping(results={@Result(name="success",value="/view/catSuccess.jsp"),@Result(name="faile",value="/view/catFaile.jsp")})
	public String execute(HttpServletRequest request,Animal animal,Map<String, String> forwardMap) {
		return catService.processCatBusiness(request, animal, forwardMap);
	}

}
